package com.wjh.controller;

import com.wjh.pojo.Tag;
import com.wjh.service.TagService;
import com.wjh.utils.ResponseResult;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("system")
public class StudioTagController {

    @Resource
    private TagService tagService;

    @GetMapping("/tag/all")
    public ResponseResult getTagAll(String name){
        return tagService.queryStudyAll(name);
    }


    @GetMapping("/study/all")
    public ResponseResult queryStudyAll(String name){
        return tagService.queryStudyAll(name);
    }

}
